.slider-puzzle-verification {
    width: 90%;
    max-width: 30rem;
    margin: 1rem auto;
    text-align: center;
    background-color: #fff;
    padding: 1rem;
    border-radius: 0.625rem;
    box-shadow: 0 0 0.625rem rgba(0, 0, 0, 0.2);
}

canvas {
    width: 94%;
    max-width: 9rem;
    height: auto;
    border: 0.01333rem solid #ccc;
    margin-bottom: 1rem;
    margin-left: 2rem;
    margin-top: 0.5rem;
}

.slider {
    width: 100%;
}

/* 修改滑块轨道样式 */
.slider {
    -webkit-appearance: none;
    width: 90%;
    height: 0.25rem;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
    border-radius: 0.625rem;
    margin-left: 0.5rem;
}

/* 鼠标悬停时滑块轨道的不透明度 */
.slider:hover {
    opacity: 1;
}

/* 修改滑块样式为方形 */
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 0.6rem;
    height: 0.6rem;
    background: #4CAF50;
    cursor: pointer;
    border-radius: 0.2rem;
}

.slider::-moz-range-thumb {
    width: 1.5rem;
    height: 1.5rem;
    background: #4CAF50;
    cursor: pointer;
    border-radius: 0.2rem;
}

/* 添加媒体查询，针对小屏幕设备进一步优化 */
@media (max-width: 480px) {
    .slider-puzzle-verification {
        width: 95%;
        padding: 0.75rem;
    }

    canvas {
        margin-bottom: 0.75rem;
    }

    .slider::-webkit-slider-thumb,
    .slider::-moz-range-thumb {
        width: 1.25rem;
        height: 1.25rem;
    }
}